package com.example.design.facade;


public class EncryptFacade extends AbstractEncryptFacade {
	private FileReader reader;
	private CipherMachine cipher;
	private FileWriter writer;
	
	public EncryptFacade(){
		reader = new FileReader();
		cipher = new CipherMachine();
		writer = new FileWriter();
	}
	
	public void FileEncrypt(String fileNameSrc, String fileNameDes) {
		String source = reader.Read(fileNameSrc);
		String dst = cipher.Encrypt(source);
		System.out.println("dst file : " + dst);
		writer.Writer(fileNameDes, dst);
	}
}
